package com.zjcloud.academic.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import com.zjcloud.academic.mapper.AcademicScScheduleResultMapper;
import com.zjcloud.academic.domain.ScScheduleResult;
import com.zjcloud.academic.service.IScScheduleResultService;
import com.zjcloud.common.core.text.Convert;

/**
 * �ſν��Serviceҵ��㴦��
 * 
 * @author zjcloud
 */
@Service
public class AcademicScScheduleResultServiceImpl implements IScScheduleResultService 
{
    @Autowired
    @Qualifier("academicScScheduleResultMapper")
    private AcademicScScheduleResultMapper scScheduleResultMapper;

    /**
     * ��ѯ�ſν��
     * 
     * @param id �ſν��ID
     * @return �ſν��
     */
    @Override
    public ScScheduleResult selectScScheduleResultById(Long id)
    {
        return scScheduleResultMapper.selectScScheduleResultById(id);
    }

    /**
     * ��ѯ�ſν���б�
     * 
     * @param scScheduleResult �ſν��
     * @return �ſν��
     */
    @Override
    public List<ScScheduleResult> selectScScheduleResultList(ScScheduleResult scScheduleResult)
    {
        return scScheduleResultMapper.selectScScheduleResultList(scScheduleResult);
    }

    /**
     * �������β�ѯ�ſν��
     * 
     * @param scheduleBatch �ſ�����
     * @return �ſν������
     */
    @Override
    public List<ScScheduleResult> selectScScheduleResultByBatch(String scheduleBatch)
    {
        return scScheduleResultMapper.selectResultsByBatchNo(scheduleBatch);
    }

    /**
     * �����ſν��
     * 
     * @param scScheduleResult �ſν��
     * @return ���
     */
    @Override
    public int insertScScheduleResult(ScScheduleResult scScheduleResult)
    {
        return scScheduleResultMapper.insertScScheduleResult(scScheduleResult);
    }

    /**
     * ���������ſν��
     * 
     * @param scScheduleResultList �ſν���б�
     * @return ���
     */
    @Override
    public int batchInsertScScheduleResult(List<ScScheduleResult> scScheduleResultList)
    {
        return scScheduleResultMapper.batchInsertScScheduleResult(scScheduleResultList);
    }

    /**
     * �޸��ſν��
     * 
     * @param scScheduleResult �ſν��
     * @return ���
     */
    @Override
    public int updateScScheduleResult(ScScheduleResult scScheduleResult)
    {
        return scScheduleResultMapper.updateScScheduleResult(scScheduleResult);
    }

    /**
     * ����ɾ���ſν��
     * 
     * @param ids ��Ҫɾ��������ID
     * @return ���
     */
    @Override
    public int deleteScScheduleResultByIds(Long[] ids)
    {
        return scScheduleResultMapper.deleteScScheduleResultByIds(ids);
    }

    /**
     * ɾ���ſν����Ϣ
     * 
     * @param id �ſν��ID
     * @return ���
     */
    @Override
    public int deleteScScheduleResultById(Long id)
    {
        return scScheduleResultMapper.deleteScScheduleResultById(id);
    }

    /**
     * ��������ɾ���ſν��
     * 
     * @param scheduleBatch �ſ�����
     * @return ���
     */
    @Override
    public int deleteScScheduleResultByBatch(String scheduleBatch)
    {
        return scScheduleResultMapper.deleteScScheduleResultByBatch(scheduleBatch);
    }
}